<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let obj = {
            name:"老王",
            age:18
        }

        let obj2 = {
            like:['足球']
        }

        // let {age,...obj2} = obj;
        // console.log(obj2);

        // 展开
        // let obj2 = {...obj};
        // console.log(obj2);

        // let obj3 = {...obj,...obj2};
        // console.log(obj3);


        

        
    </script>
</body>
</html>